package com.angel.web.sys;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.angel.core.util.JsonUtil;
import com.angel.core.util.Pager;
import com.angel.health.SysLogWithBLOBs;
import com.angel.provider.sys.SysManagerLogProvider;

/**
 * 高亚林
 * 2016年9月20日下午1:08:48
 */

@RequestMapping("/manag/log")
@Controller
public class SysManagerLogController {

	@Autowired
	private SysManagerLogProvider provider;
	
	//分页查询
	@RequestMapping("/index")
	public String index(SysLogWithBLOBs log,Pager pagers,HttpServletRequest request){
		Pager pager = provider.findAll(log, pagers);
		request.setAttribute("pager", pager);
		return "manag/log";
	}
	
	//批量删除
	/*@RequestMapping("delete")
	@ResponseBody
	public String delete(String ids){
		int i = provider.delete(ids);
		return JsonUtil.toJson(i);
	}*/
	
	//删除单个用户
	/*@RequestMapping("deleteById")
	@ResponseBody
	public String deleteById(SysLogWithBLOBs log){
		int i = provider.deleteById(log);
		return JsonUtil.toJson(i);
	}*/
}
